# 定义函数

# 参数可以给默认值
def square(x=10):
    sum = x * x
    return sum


# 再函数定义之后调用
print(square(100))

# print(square("100"))


# lambda
fun = lambda x, y: x + y

print(fun(1, 2))


# 递归

def f(i):
    if i == 1:
        return 1

    return f(i - 1) * i



print(f(3))

